[FFmpeg-trac] #3268(avformat:new): CRLF problem with custom headers when playing hls streams on windows

FFmpeg trac at avcodec.org
Thu Feb 26 14:22:18 CET 2015


#3268: CRLF problem with custom headers when playing hls streams on windows
------------------------------------+------------------------------------
             Reporter:  lorus       |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:  hls win     |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by tkhanipov):

 I encountered a similar problem and agree with the author that "\r\n"
 should be hardcoded into http.c.

 HTTP 1.1 protocol says:
 {{{
 generic-message = start-line
                   *(message-header CRLF)
                   CRLF
                   [ message-body ]

 message-header = field-name ":" [ field-value ]
 }}}

 That means that "\r\n" (CRLF) MUST follow each header. So why specify it
 manually inside the 'headers' option?

 I would also like to note that this is not only Windows-specific problem.
 That is true that under Linux it is easier to bypass but the inconvenience
 still exists.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3268#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list