AVStream.codec is deprecated
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
... | ... |
@@ -1895,7 +1895,7 @@ static inline void print_stream_params(AVIOContext *pb, FFServerStream *stream) |
1895 | 1895 |
snprintf(parameters, sizeof(parameters), |
1896 | 1896 |
"%dx%d, q=%d-%d, fps=%d", st->codecpar->width, |
1897 | 1897 |
st->codecpar->height, st->codec->qmin, st->codec->qmax, |
1898 |
- st->codec->time_base.den / st->codec->time_base.num); |
|
1898 |
+ st->time_base.den / st->time_base.num); |
|
1899 | 1899 |
break; |
1900 | 1900 |
default: |
1901 | 1901 |
abort(); |
... | ... |
@@ -1903,7 +1903,7 @@ static inline void print_stream_params(AVIOContext *pb, FFServerStream *stream) |
1903 | 1903 |
|
1904 | 1904 |
avio_printf(pb, "<tr><td align=right>%d<td>%s<td align=right>%"PRId64 |
1905 | 1905 |
"<td>%s<td>%s\n", |
1906 |
- i, type, (int64_t)st->codec->bit_rate/1000, |
|
1906 |
+ i, type, (int64_t)st->codecpar->bit_rate/1000, |
|
1907 | 1907 |
codec ? codec->name : "", parameters); |
1908 | 1908 |
} |
1909 | 1909 |
|